package com.moli.iov.admin.service.impl;

import com.moli.iov.admin.service.IVehicleRegisterRecordService;
import com.moli.iov.base.model.dto.req.VehicleRegisterRecordDto;
import com.moli.iov.base.model.mongo.VehicleRegisterRecord;
import com.moli.iov.base.remote.IVehicleRegisterRecordRemoteService;
import com.moli.iov.model.dto.req.PageExtend;
import com.moli.iov.rest.RestResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * The type Vehicle register record service.
 *
 * @author wanghualin
 * @date 2019 -12-13 10:02:46
 */
@Slf4j
@Service
public class VehicleRegisterRecordServiceImpl  implements IVehicleRegisterRecordService {

    @Reference(group = "${service.group}", check = false)
    private IVehicleRegisterRecordRemoteService recordRemoteService;
    @Override
    public RestResponse<PageExtend<VehicleRegisterRecord>> listVehicleRegisterRecord(VehicleRegisterRecordDto dto) {
        return recordRemoteService.listVehicleRegisterRecord(dto);
    }
}
